﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NTiering.Models;

namespace NTiering.Collections
{
    class TypeKeyedCollection<T> : List<T>
        where T : ITypeKeyedModel
    {
        public IEnumerable<T> Find(Type t)
        {
            return this.Where(x => x.Key == t).AsEnumerable();
        }
    }
}
